<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<title>Mercury</title>
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="Mercury - Simple One Page Personal" name="description">
<meta content="Mercury" name="author">
<script type="text/javascript" src="/login/js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="/login/images/login.js"></script>
<link href="/login/css/login2.css" rel="stylesheet" type="text/css" />
<script src="/common/js/md5.js"></script>
<script src="/common/js/login.js"></script>
</head>
<body>

<div class="login" style="margin-top:50px;">
    
    <div class="header">
        <div class="switch" id="switch">
            <a class="switch_btn_focus" id="switch_qlogin" href="javascript:void(0);" tabindex="7">登录</a>
			<a class="switch_btn" id="switch_login" href="javascript:void(0);" tabindex="8">注册</a>
            <div class="switch_bottom" id="switch_bottom" style="position: absolute; width: 64px; left: 0px;"></div>
        </div>
    </div>
    <div class="web_qr_login" id="web_qr_login" style="display: block; height: 235px;">
            <!--登录-->
            <div class="web_login" id="web_login">
                <div class="login-box">
                    <div class="login_form">
                        <form name="loginform" accept-charset="utf-8" id="login_form" class="loginForm" method="post">
                            <input type="hidden" name="did" value="0"/>
                           <input type="hidden" name="to" value="log"/>
                            <div class="uinArea" id="uinArea">
                                <label class="input-tips" for="userName">帐号：</label>
                                <div class="inputOuter" id="uArea">
                                    <input type="text" id="userName" name="userName" class="inputstyle"/>
                                </div>
                            </div>
                            <div class="pwdArea" id="pwdArea">
                               <label class="input-tips" for="password">密码：</label>
                               <div class="inputOuter" id="pArea">
                                    <input type="password" id="password" name="password" class="inputstyle"/>
                                </div>
                            </div>
                            <div style="padding-left:50px;margin-top:20px;">
                                <input type="button" value="登 录" onclick="login();" style="width:150px;" class="button_blue"/>
                            </div>
                      </form>
                   </div>
            	</div>
            </div>
            <!--登录end-->
  </div>
<!--<div th:text="${msg}"></div>-->
  <!--注册-->
    <div class="qlogin" id="qlogin" style="display: none; ">
   
    <div class="web_login">
        <form name="form2" id="regUser" accept-charset="utf-8"  action="http://www.jq22.com" method="post">
	        <input type="hidden" name="to" value="reg"/>
            <input type="hidden" name="did" value="0"/>
            <ul class="reg_form" id="reg-ul">
        		<div id="userCue" class="cue">快速注册请注意格式</div>
                <li>
                	
                    <label for="name"  class="input-tips2">用户名：</label>
                    <div class="inputOuter2">
                        <input type="text" id="name" name="userName" maxlength="16" class="inputstyle2"/>
                    </div>
                    
                </li>
                
                <li>
                <label for="pwd" class="input-tips2">密码：</label>
                    <div class="inputOuter2">
                        <input type="password" id="pwd"  name="password" maxlength="16" class="inputstyle2"/>
                    </div>
                    
                </li>
                <li>
                <label for="pwd2" class="input-tips2">确认密码：</label>
                    <div class="inputOuter2">
                        <input type="password" id="pwd2" name="password2" maxlength="16" class="inputstyle2" /> <span id="message"></span>
                    </div>
                    
                </li>
                <li>
                    <div class="inputArea">
                        <input type="button" id="reg" onclick="register();"  style="margin-top:10px;margin-left:85px;" class="button_blue" value="注 册"/>
                    </div>
                </li>
                <div class="cl"></div>
            </ul>
        </form>
        </div>
    </div>
    <!--注册end-->
</div>

</body>
</html>
<script>
    $(function(){
        alertMsg();
    });

    function alertMsg(){
        var msg = '[[${msg}]]';
        if(msg != null && msg != ''){
            alert(msg);
        }
    }
</script>
